<div class="GoodsList RecommendGifts">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
       
        <{foreach from=$data item=data key=key }>
           <tr>  <td class="item">
		   <{if $data.image_default_id}>
		   <div class='goodsImg'>
		       <a href="<{link app="gift" ctl="site_gift" act="index" arg0=$data.goods_id}>" target="_blank" title="<{$data.name}>" style=" overflow:hidden; display:block;">
		           <img style="width:<{$setting.picwidth}>px;height:<{$setting.picheight}>px" src="<{$data.image_default_id|storager:'s'}>">
		       </a>
		   </div>
		   <{/if}>
		   <h6><a href="<{link app="gift" ctl="site_gift" act="index" arg0=$data.goods_id}>" target="_blank" title="<{$data.name}>"><{$data.name|cut:$setting.maxlength}></a></h6><td> </tr>
    <{/foreach}>
           
    </table>
</div>
<script>


window.addEvent('load',function(){
         var RecommendGifts=$$('.RecommendGifts .goodsImg a img');
        try{
         fixProductImageSize($$(RecommendGifts),'a');
         }catch(e){}
    });
</script>